import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/im_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class ImListEntity {
	late int code;
	late String msg;
	late List<ImListData> data;

	ImListEntity();

	factory ImListEntity.fromJson(Map<String, dynamic> json) => $ImListEntityFromJson(json);

	Map<String, dynamic> toJson() => $ImListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ImListData {
	@JSONField(name: "is_rest")
	late String isRest;
	late String nickname;
	late String photo;
	late String account;
	@JSONField(name: "order_id")
	late String orderId;
	@JSONField(name: "account_up")
	late String accountUp;
	@JSONField(name: "account_sc")
	late String accountSc;
	@JSONField(name: "account_group")
	late String accountGroup;
	late String games;
	@JSONField(name: "is_bp")
	late String isBp;

	ImListData();

	factory ImListData.fromJson(Map<String, dynamic> json) => $ImListDataFromJson(json);

	Map<String, dynamic> toJson() => $ImListDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}